app.controller('authorityTreeController', ['$scope', 'httpWrapService', 'dialogs', '$state', '$stateParams', 'AppConstants','TableFactory',
            function($scope, httpWrapService, dialogs, $state, $stateParams, AppConstants,TableFactory) {

	
	$scope.data = [];
	httpWrapService.post("system/authority/list.do", {}).then(function(res){
		$scope.data = res.data.data;
    });
 
	
	$scope.setting = {
		callback : {
			onClick: function (event, treeId, treeNode, clickFlag) {
				 $state.go('app.system.authority.tree.view', {entity : treeNode});
            }
		}
	}
	
}]);